Skip to content

feat(cli): add cmd/nsgo-game extension binary and decouple from nsgo built-in - #1254

Merged
houko merged 1 commit into
mainfrom
feat/nsgo-game-extension
Nov 26, 2026
Merged

houko merged 1 commit into
mainfrom
feat/nsgo-game-extension

Conversation

@houko

@houko houko commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extract the shared CLI implementation (including _templates/ and testdata/) from packages/game/cmd/game into packages/game/internal/gamecli (exporting Main() and Run(args []string) int).
  • Keep packages/game/cmd/game/main.go as a thin entrypoint preserving tool github.com/nsgo-dev/game/packages/game/cmd/game, go tool game, in-module nsgo game, and go run .../cmd/game@latest.
  • Add packages/game/cmd/nsgo-game/main.go (plus build/help test) so go install github.com/nsgo-dev/game/packages/game/cmd/nsgo-game@latest installs the nsgo-game extension binary on PATH for nsgo game outside a module via NSGo's generic extension mechanism.
  • Register game/cmd/nsgo-game as Experimental in docs/{en,zh}/stability.md and skills/nsgo-game/references/packages.md, and update packages/game/conformance_test.go (notFormats moved from cmd/game to internal/gamecli).
  • Update EN/ZH docs (cli.md, cli-reference.md, templates.md, getting-started.md), template/README.md, skills/nsgo-game, changelog fragment, and .agents/notes/ to document extension-based nsgo game dispatch and remove references to the former nsgo built-in and NSGO_GAME_VERSION.

Verification

  • gofmt -l packages/game (clean)
  • cd packages/game && go run ./cmd/gameschema -check
  • cd packages/game && go tool nsgo check -target macos_arm64
  • cd packages/game && go tool nsgo test ./cmd/game (1 passed)
  • cd packages/game && go tool nsgo test ./cmd/nsgo-game (1 passed)
  • cd packages/game && go tool nsgo test ./internal/gamecli (183 passed, 1 skipped)
  • cd packages/game && go tool nsgo test . -- -run 'TestStability|TestAPI|TestFormatPackagesRunConformance|TestAgentSkillValid' (3 passed)
  • go run ./tools/changelog check
  • bun run verify-notes

@github-actions github-actions Bot added enhancement New feature or request size/L documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file pkg/cmd pkg/internal area/ci area/template pkg/game area/agents labels Nov 26, 2026
@houko
houko merged commit 8517221 into main Nov 26, 2026
73 of 74 checks passed
@houko
houko deleted the feat/nsgo-game-extension branch November 26, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agents area/ci area/template dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request pkg/cmd pkg/game pkg/internal size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant